//
//  WCExtractAction.h
//  WebClipper
//
//  Created by Daniel Braun on 15/03/07.
//  Copyright 2007 Daniel Braun http://page-appart.net, http://braun.daniel.free.fr All rights reserved.
//

#import <Cocoa/Cocoa.h>

#import "WCDom.h"

// abstract parent class for all actions
// ZERO_LINK MUST be deactivated


@interface WCExtractAction : NSObject {
	id _guiHandler;
	BOOL _guiInit;
}

+ (BOOL) canHandle:(id)item;

- (id) handle:(DOMHTMLElement *)v fromUrl:(NSURL *)url;

- (BOOL) isNew;
- (void) setupGui;
- (id) guiHandler;




- (id) initWithCoder:(NSCoder *) coder;
- (void)encodeWithCoder:(NSCoder *)coder;
	
@end

// methods gui handler may implement
@protocol WCExtractActionGuiHandler
- (void) setParentObject:(WCExtractAction *)p;
- (void) setupGuiController:(id)c;
- (NSView *) getView;
@end